package com.mmall;

import com.mmall.dao.UserMapper;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author Jormin
 * @Date 2017/5/12.
 */
public class UserMapperTest {

    ApplicationContext applicationContext=new ClassPathXmlApplicationContext("/applicationContext.xml");
    UserMapper userMapper=(UserMapper)applicationContext.getBean("userMapper");
    @Test
    public void UserMappertest(){
        userMapper.checkEmailByUserId("1",2);
    }
}
